import { useMemberStore } from "@/stores";
import { BaseURL } from "@/stores/modules/base";
import type { PageResult } from "@/types/mycontribute";
import type { PageQuery } from "@/types/mycontribute";
import { httpR2 } from "@/utils/http";

export const getContributeResult = (query: PageQuery) => {
  return httpR2<PageResult>({
    method: "POST",
    url: BaseURL + "/content/contribute/page",
    header: {
      // authorization: useMemberStore().profile.authorization,
    },
    data: {
      ...query,
    },
  });
};
